{@if data.template}
<form class="form-horizontal" role="form" id="${data.id}_form" action="javascript:void(0);" method="post">
    <div class="form-group">
        <label class="col-sm-2 control-label">抽佣门槛（元）</label>
        <div class="col-sm-10">
            <input type="text" id="basePriceFee_${data.id}" name="basePriceFee" class="form-control" placeholder="抽佣门槛（元）" value="${data.template.basePriceFee/100}">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">生效日期</label>
        <div class="col-sm-10">
            <div class="input-group date form_date" data-date="" data-date-format="yyyy-mm-dd">
                <input class="form-control" id="startDate_${data.id}" name="startDate" size="32" type="text" value="${data.template.startDateFormat}" readonly>
                <span class="input-group-addon"><span class="glyphicon glyphicon-time"></span></span>
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">技术服务费费率（%）</label>
        <div class="col-sm-10">
            <table width="100%" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="30%" height="300">
                        <div style="height: 300px;overflow: auto">
                            <ul class="nav nav-tabs nav-stacked nav-tabs-justified" role="tablist">
                                {@each data.template.commissionRuleMap as commissionRule,index}
                                <li role="presentation">
                                    <a href="#${commissionRule.id}_${data.id}" aria-controls="${commissionRule.id}_${data.id}" role="tab" data-toggle="tab">${commissionRule.name}</a>
                                </li>
                                {@/each}
                            </ul>
                        </div>
                    </td>
                    <td valign="top">
                        <div class="tab-content" style="height: 300px;overflow: auto">
                            {@each data.template.commissionRuleMap as commissionRule,index}
                            <div role="tabpanel" class="tab-pane " id="${commissionRule.id}_${data.id}" style="padding: 10px">
                                {@each commissionRule.list as commission}
                                <div class="form-group">
                                    <label class="col-sm-8 control-label">${commission.categoryName}(%)</label>
                                    <div class="col-sm-4">
                                        <input type="text" id="${commission.id}" name="${commission.categoryId}" class="form-control" placeholder="技术服务费费率" value="${commission.rate/100}">
                                    </div>
                                </div>
                                {@/each}
                            </div>
                            {@/each}
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    {@if data.template.editable}
    <div class="form-group" style="text-align: right;padding-right: 10px;">
        <button type="button" id="save_${data.id}" class="btn btn-primary" data-id="${data.id}">保存</button>
    </div>
    {@/if}
</form>
{@/if}